package Vista;
import java.util.ArrayList;
import javax.swing.JScrollPane;

import javax.swing.JTextArea;

import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class Informes extends javax.swing.JFrame {
	private JTextArea jTextArea;
	private JScrollPane jScrollPane1;
	private ArrayList<String> perdidos;
	String y="";

	public Informes(ArrayList<String> perdidos) {
		super();
		this.perdidos=perdidos;
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			getContentPane().setLayout(null);
			{
				jTextArea = new JTextArea();
				getContentPane().add(jTextArea);
				for(int a=0;a<perdidos.size();a++)
				{
					y+=perdidos.get(a)+"\n";
					
				}
				jTextArea.setText(y);
				jTextArea.setBounds(9, 7, 338, 182);
			}
			{
				jScrollPane1 = new JScrollPane(jTextArea);
				getContentPane().add(jScrollPane1);
				jScrollPane1.setBounds(12, 8, 333, 181);
			}
			pack();
			this.setSize(375, 240);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
